<style type="text/css">
    .modal-lg {
        width: 60%;
    }
    .thWidthAndHeight{width:100px; height:20px;}
</style>
<div class="modal-header width90">
    <h4 class="modal-title">添加设备负责人</h4>
</div>

<div class="modal-body width90">
    <div class="container-fluid form-horizontal ">
        <div class="panel panel-default">
            <!--设备负责人姓名-->
                <div class="form-group">
                    <label class="col-xs-2 control-label">登录名</label>
                    <div class="col-xs-6 form-horizontal">
                        <span class="col-sm-5 control-label" 
                        style="padding-left: 0px; padding-right: 2px;" 
                        >{{info.company_code}} + </span>
                        <div class="col-sm-7" style="padding-left: 2px;" >
                        <input type="text" 
                            class="form-control" placeholder="必填"
                            ng-model="obj.loginName" 
                            >
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">密码</label>
                    <div class="col-xs-6">
                        <p class="form-control-static text-danger">默认'000000'请尽快修改</p>
                    </div>
                </div>
                <div class="form-group">
                <label class="col-xs-2 control-label">姓名</label>
                <div class="col-xs-6">
                    <input type="text" 
                    class="form-control" placeholder="必填"
                    ng-model="obj.name"
                    >
                </div>
            </div>

            <div class="form-group">
                <label class="col-xs-2 control-label">电话</label>
                <div class="col-xs-6">
                    <input type="text" class="form-control"
                    ng-model="obj.mobile"
                    >
                </div>
            </div>

            <div class="form-group">
                <label class="col-xs-2 control-label">备注</label>
                <div class="col-xs-6">
                    <input type="text" class="form-control"
                    ng-model="obj.remark"
                    >
                </div>
            </div>

            <div class="form-group">
                <label class="col-xs-2 control-label">角色</label>
                <div class="col-xs-6 ">
                    <div class="checkbox" ng-repeat="obj in objs">
                      <label>
                        <input type="checkbox" name="role" value="{{obj.id}}"
                        ng-click="selection($event,obj)"
                        >
                        {{obj.name}}
                      </label>
                    </div>
                </div>
            </div>
                <!--<div class="form-group">
                    <label class="col-sm-3 control-label">
                        设备负责人姓名：
                    </label>
                    <div class="col-sm-3">
                        <input class="form-control" ng-model="equipmentperson.name" type="text" name="name"   ng-maxlength="32" ng-focus="equipmentperson.nameadd()" ng-blur="equipmentperson.nameblur()"/><!--ng-minlength="4"-->
                    <!--</div>
                    
                    <label class="col-sm-6 control-label">
                        <div ng-show="equipmentperson.namecheck" align="left">
                            <span class="error">设备负责人姓名不能为空</span>
                        </div>
                    </label>
                    <div class="line line-dashed b-b line-lg pull-in">
                    </div>
                </div>-->
                <!--设备负责人电话
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        设备负责人电话：
                    </label>
                    <div class="col-sm-3">
                        <input class="form-control" ng-model="equipmentperson.mobile" type="text" name="mobile"   ng-maxlength="32" ng-focus="equipmentperson.mobileadd()" ng-blur="equipmentperson.mobileblur()"/><!--ng-minlength="4"
                    </div>
                   
                    <label class="col-sm-6 control-label">
                        <div ng-show="equipmentperson.mobilecheck" align="left">
                            <span class="error">设备名称电话不能为空</span>
                        </div>
                    </label>
                    <div class="line line-dashed b-b line-lg pull-in">
                    </div>
                </div>-->
                <!--设备负责人备注
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        备注：
                    </label>
                    <div class="col-sm-8">
                        <textarea class="form-control" ng-model="equipmentperson.remark" type="textarea" name="remark">
                        </textarea>                   
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in">
                    </div>
                </div>-->
        </div>
    </div>
</div>
<div class="modal-footer width90">   
     <button class="btn m-b-xs w-xs btn-success btn-rounded" type="button" ng-click="ok()" style="margin-top: 6px">保存</button> 
     <button class="btn m-b-xs w-xs btn-success btn-rounded" type="button" ng-click="cancel()" >关闭</button>
</div>